<template>
  <AppLayout v-if="userStore.isLoggedIn" />
  <router-view v-else />
</template>

<script setup lang="ts">
import { useUserStore } from '@/stores/user'
import AppLayout from '@/layouts/AppLayout.vue'

const userStore = useUserStore()
</script>
